import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import CheckpointView from "@/views/CheckpointView";

import Home1 from "@/views/Home1";

import SyView from "@/views/SyView";
import MultiQuestionView from "@/views/MultiQuestionView";
import StudentView from "@/views/StudentView";
import TeacherView from "@/views/TeacherView";


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home1',
    component: Home1,
  },
  {
    path: '/CheckpointView',
    name: 'CheckpointView',
    component: CheckpointView,
  },

  {
    path: '/HomeView',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  }
  ,
  {
    path: '/SyView',
    name: 'syView',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component:SyView
  },
  {
    path: '/MultiQuestionView',
    name: 'multiQuestionView',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component:MultiQuestionView
  },
  {
    path: '/StudentView',
    name: 'studentView',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component:StudentView
  },
  {
    path: '/TeacherView',
    name: 'teacherView',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component:TeacherView
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
